//
//  NRWCarBaseConfigInfo.m
//  NRWMall
//
//  Created by 张记 on 2118/6/14.
//  Copyright © 2118年 com.anpxd. All rights reserved.
//

#import "NRWCarBaseConfigInfo.h"

@implementation NRWCarBaseConfigInfo
+(NSArray *)getCarBaseConfigInfo:(NRWCarDetailModel *)detailModel{

    NSString *displaceStr = [NSString stringWithFormat:@"%@%@",detailModel.result.model.modelDisplacement,detailModel.result.model.modelInletModel];
    
    NSArray *arr = @[@{@"childCarConf":@[
                               
                               @{
                                   @"confName":@"厂商",
                                   @"infoName": detailModel.result.model.modelManufacturer ?detailModel.result.model.modelManufacturer : @"--"
                                   },
                               @{
                                   @"confName":@"发动机",
                                   @"infoName":detailModel.result.model.modelEngineModel ?detailModel.result.model.modelEngineModel : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"变速箱",
                                   @"infoName":detailModel.result.carGearbox ?detailModel.result.carGearbox : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"车身结构",
                                   @"infoName":detailModel.result.model.modelBodywork ?detailModel.result.model.modelBodywork : @"--"
                                   
                                   }
                               
                               ],
                       @"confName":@"基本参数",
                       @"selectedState":@"1"
                       },
                     
                     @{@"childCarConf":@[
                               
                               @{
                                   @"confName":@"长度（mm）",
                                   @"infoName":detailModel.result.model.modelLength ? detailModel.result.model.modelLength : @"--"
                                   },
                               @{
                                   @"confName":@"宽度（mm）",
                                   @"infoName":detailModel.result.model. modelWidth ? detailModel.result.model. modelWidth : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"高度（mm）",
                                   @"infoName":detailModel.result.model.modelHeight ? detailModel.result.model.modelHeight : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"轴距（mm）",
                                   @"infoName":detailModel.result.model.modelWheelbase ? detailModel.result.model.modelWheelbase : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"车身结构",
                                   @"infoName":detailModel.result.model.modelBodywork ? detailModel.result.model.modelBodywork : @"--"
                                   
                                   }
                               
                               
                               ],
                       @"confName":@"车身",
                       @"selectedState":@"1"
                       },
                     @{@"childCarConf":@[
                               
                               @{
                                   @"confName":@"发动机型号",
                                   @"infoName":detailModel.result.model.modelEngineModel ? detailModel.result.model.modelEngineModel : @"--"
                                   },
                               @{
                                   @"confName":@"排量（ml）",
                                   @"infoName":displaceStr
                                   
                                   },
                               @{
                                   @"confName":@"进气形式",
                                   @"infoName":detailModel.result.model.modelInletModel ? detailModel.result.model.modelInletModel : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"气缸排列形式",
                                   @"infoName":detailModel.result.model.modelCylinderArray ? detailModel.result.model.modelCylinderArray : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"气缸数（个）",
                                   @"infoName":detailModel.result.model.modelCylinderNum ? detailModel.result.model.modelCylinderNum : @"--"
                                   
                                   },
                               @{
                                   @"confName":@"燃料形式",
                                   @"infoName":detailModel.result.model.modelFuelRoz ? detailModel.result.model.modelFuelRoz :@"--"
                                   
                                   },
                               @{
                                   @"confName":@"环保标准",
                                   @"infoName":detailModel.result.carEnviron ? detailModel.result.carEnviron : @"--"
                                   
                                   }
                               
                               ],
                       @"confName":@"发动机",
                       @"selectedState":@"1"
                       },
                     @{@"childCarConf":@[
                               
                               @{
                                   @"confName":@"变速箱类型",
                                   @"infoName":detailModel.result.model.modelGearbox ? detailModel.result.model.modelGearbox : @"--"
                                   },
                               @{
                                   @"confName":@"档位个数",
                                   @"infoName":detailModel.result.model.modelGearNum ? detailModel.result.model.modelGearNum : @"--"
                                   
                                   }
                               ],
                       @"confName":@"变速箱",
                       @"selectedState":@"1"
                       },
                     
                     ];
    return arr;
}
@end
